 /**
   * Copyright 2014 Viettel Telecom. All rights reserved.
   * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
   */
 package com.viettel.core.bussiness.cms; 
import java.util.List; 

import org.springframework.beans.factory.annotation.Autowired; 

import com.viettel.core.exceptions.BusinessException; 
import com.viettel.core.exceptions.DataAccessException; 
import com.viettel.core.dao.cms.ProductsPriceDAO;
import com.viettel.core.entities.cms.ProductsPrice;
 /**
   *  Mo ta muc dich cua lop (interface)
   *  @author: TOANTM1
   *  @version:  
   *  @since: 03/03/2014 - 09:43:43
   */
 public class ProductsPriceMgrImpl implements ProductsPriceMgr{ 
	@Autowired 
	ProductsPriceDAO productspriceDAO; 
 
 	/**@author TOANTM1
  	 * 03/03/2014 - 09:43:43
  	 * For: 
  	 * @description: 
  	 */
 	@Override 
	public ProductsPrice getProductsPriceById(Integer id) throws BusinessException { 
		try { 
			return  productspriceDAO.getProductsPriceById(id); 
		} catch (DataAccessException e) { 
			throw new BusinessException(e); 
		} 
	} 
 
 	/**@author TOANTM1
  	 * 03/03/2014 - 09:43:43
  	 * For: 
  	 * @description: 
  	 */
 	@Override 
	public ProductsPrice createProductsPrice(ProductsPrice productsprice) throws BusinessException { 
		try { 
			return productspriceDAO.createProductsPrice(productsprice); 
		} catch (DataAccessException e) { 
			throw new BusinessException(e); 
		} 
	} 
 
 	/**@author TOANTM1
  	 * 03/03/2014 - 09:43:43
  	 * For: 
  	 * @description: 
  	 */
 	@Override 
	public void updateProductsPrice(ProductsPrice productsprice) throws BusinessException { 
		try { 
			productspriceDAO.updateProductsPrice(productsprice); 
		} catch (DataAccessException e) {	 
			throw new BusinessException(e); 
		} 
	} 
 
 	/**@author TOANTM1
  	 * 03/03/2014 - 09:43:43
  	 * For: 
  	 * @description: 
  	 */
 	@Override 
	public void deleteProductsPrice(ProductsPrice productsprice) throws BusinessException { 
		try { 
			productspriceDAO.deleteProductsPrice(productsprice); 
		} catch (DataAccessException e) { 
			throw new BusinessException(e); 
		} 
	} 
} 
